#RCVG.py  
import visa
def populateGPIB():
        rm=visa.ResourceManager()
        resources=rm.list_resources
        return resources
def getCurrent (Qport):
        rm=visa.ResourceManager()
        inst=rm.open_resource(Qport)
        result=inst.query(":MEAS:CURR?")
        float_result=float(result) 
        return float_result
    
